package net.googlecode.harchenko.task4;

/**
 * Created by IntelliJ IDEA.
 * User: undertext
 * Date: 03.04.11
 * Time: 15:54
 * To change this template use File | Settings | File Templates.
 */

/**
 * Class that calls methods of class StringProcessor.
 */
public class App {

    public static void main(String[] args) {


       StringProcessor stringProcessor = new StringProcessor();


        System.out.println(String.format("Initial sentence:\n%s \n", StringProcessor.STRING));

        System.out.println(String.format("Operation: Normalizing sentence \nResult:%s \n",
                           stringProcessor.normalizeString()));

        System.out.println(String.format("Operation: Words beginning with big letters \nResult:%s \n",
                           stringProcessor.upperCaseWords()));

        System.out.println(String.format("Operation: Reverse words in sentence\nResult:%s \n",
                           stringProcessor.reverseWords()));

        System.out.println(String.format("Operation: Operation: Replace 'A' or 'a' with '!'\nResult:%s \n",
                           stringProcessor.replaceA()));

        System.out.println(String.format("Operation: Add date at the end\nResult:%s \n",
                           stringProcessor.addDate()));

    }
}
